package com.angel.controller;

import com.angel.config.MyConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private MyConfig myConfig;

    @GetMapping("/tlogin")
    public ModelAndView UserLogin(){
        ModelAndView modelAndView =new ModelAndView("user_login");

        return modelAndView;
    }

    @PostMapping("/testLogin")
    public ModelAndView User1Login(){
        System.out.println("-----------------------------------用户已经登录");
        ModelAndView modelAndView =new ModelAndView("index2");
        return modelAndView;

    }


}
